package JDBC_Test.park.Model;

//import java.math.BigDecimal;
import java.util.Date;

public class ParkRecordModel {
	
	private Integer parkNo;
	private String carLicense;
	private Date startTime;
	private Date endTime;
	private Double money;
	public ParkRecordModel() {
		super();
	}
	public ParkRecordModel(Integer parkNo, String carLicense, Date startTime, Date endTime, Double money) {
		super();
		this.parkNo = parkNo;
		this.carLicense = carLicense;
		this.startTime = startTime;
		this.endTime = endTime;
		this.money = money;
	}
	public Integer getParkNo() {
		return parkNo;
	}
	public void setParkNo(Integer parkNo) {
		this.parkNo = parkNo;
	}
	public String getCarLicense() {
		return carLicense;
	}
	public void setCarLicense(String carLicense) {
		this.carLicense = carLicense;
	}
	public Date getStartTime() {
		return startTime;
	}
	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}
	public Date getEndTime() {
		return endTime;
	}
	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}
	public Double getMoney() {
		return money;
	}
	public void setMoney(Double money) {
		this.money = money;
	}
	@Override
	public String toString() {
		if(money==0) {
			return "ParkRecordModel [车位：" + parkNo + ", 车牌号：" + carLicense + ", 停车时间：" + startTime
					+ ", 取车时间：" + "暂未取车" + ", 收费：" + money + "￥]";
		}else {
			return "ParkRecordModel [车位：" + parkNo + ", 车牌号：" + carLicense + ", 停车时间：" + startTime
					+ ", 取车时间：" + endTime + ", 收费：" + money + "￥]";
		}
	}
	

}
